package com.unsky.utils.jpasql;

import org.jdom.Element;

public class XmlElement {
	/**
	 * 
	 */
	private String sqlType;
	
	public Element ele;

	public static String SQL="sql";
	public static String JHQL="jhql";
	private String resultType;
	
	
	
	public XmlElement(String sqlType, Element ele, String resultType) {
		super();
		this.sqlType = sqlType;
		this.ele = ele;
		this.resultType = resultType;
	}

	
	public XmlElement(Element ele) {
		super();
		this.ele = ele;
	}

	
	public String getResultType() {
		return resultType;
	}


	public void setResultType(String resultType) {
		this.resultType = resultType;
	}


	public XmlElement() {
	}
	public String getSqlType() {
		return sqlType==null?JHQL:sqlType;
	}

	public void setSqlType(String sqlType) {
		this.sqlType = sqlType;
	}

	public Element getEle() {
		return ele;
	}

	public void setEle(Element ele) {
		this.ele = ele;
	}
	
}
